import React from 'react';
import {render} from 'react-dom';
import {Provider} from 'react-redux';
import configureStore from './store/configureStore';
import {Router, hashHistory} from 'react-router';
import getRoutes from './route';

import './reset.css';

const rootElement = document.getElementById('root');
const store = configureStore(); // initialState 可以不传.
const routes = getRoutes();
const history = hashHistory;

render((
        <Provider store={store}>
            <Router history={history}>
                {routes}
                {/* 如果是多页面, 其他 route 放这里*/}
            </Router>
        </Provider>
    ),
    rootElement
);
			